package com.study.websocket1.controller;

import org.springframework.web.bind.annotation.*;


/**
 * @author
 */
@RestController
@RequestMapping("/echo")
public class EchoController {

    /**
     * 消息内容
     * @param name
     * @return
     */
    @GetMapping(value="/out")
    public String out(@RequestParam(required=true) String name){
        System.out.println(name);
        return "sucdess";
    }
}